package com.twohand.admin.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.twohand.admin.Entity.UserRole;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserRoleMapper extends BaseMapper<UserRole> {
    @Select("select role_id from user_role where user_id = #{userId}")
    Integer getRoleIdByUserId(Integer userId);
}
